package com.ericom.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ericom.dao.SupplierDao;
import com.ericom.model.Supplier;
import com.ericom.service.SupplierManager;

@Service("supplierManager")
public class SupplierManagerImpl extends GenericManagerImpl<Supplier, Long> implements
		SupplierManager {

	private SupplierDao supplierDao;
	@Autowired
	public SupplierManagerImpl(SupplierDao supplierDao){
		super(supplierDao);
		this.supplierDao=supplierDao;
	}

	@Override
	public List<Supplier> findByName(String name) {
		
		return this.supplierDao.findByName(name);
	}

}
